var status = -1;
var selectionLog = new Array();

function action(e, c, b) {
    if (status == 0 && e == 0) {
        ms.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        ms.dispose()
    } else {
        if (status === a++) {
            cm.curNodeEventEnd(true);
            cm.setInGameDirectionMode(true, false, false);
            cm.fieldEffect_InsertCanvas(1, 255, 0, 0, 0, 0, 0);
            cm.inGameDirectionEvent_MoveAction(2);
            cm.inGameDirectionEvent_AskAnswerTime(200)
        } else {
            if (status === a++) {
                cm.inGameDirectionEvent_AskAnswerTime(1000)
            } else {
                if (status === a++) {
                    cm.fieldEffect_InsertCanvas(0, 0, 0, 0, 0, 1500, 0);
                    cm.inGameDirectionEvent_AskAnswerTime(1500)
                } else {
                    if (status === a++) {
                        cm.setInGameDirectionMode(false, true, false);
                        cm.addPopupSay(9400604, 2000, "城塔上方！到城塔上方去！我们来争取时间！！", "", 0);
                        cm.spawnMobLimit(9402273, 1, -780, 800, 1);
                        var d = cm.readQuestInfo(64204);
                        d.put("LadderMob", "0");
                        d.put("RushMob", "1");
                        cm.saveQuestInfo(64204, d);
                        ms.dispose();
                        cm.getPlayer().scheduleOpenNpcTask(30, 83, "莫奈德_传送点提示");
                        cm.getPlayer().scheduleOpenNpcTask(60, 84, "莫奈德_传送点提示")
                    }
                }
            }
        }
    }
}

function start() {
    status = -1;
    action(1, 0, 0)
};